package com.hghivln.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hghivln.pojo.domain.CareHistory;

import java.util.List;

public interface CareHistoryMapper extends BaseMapper<CareHistory> {
    /**
     * 根据患者Id查询历史病例
     * @param patientId 患者Id
     * @return List<CareHistory>
     */
    List<CareHistory> selectCareHistoryById(String patientId);

    /**
     * 根据挂号Id查询历史病例
     * @param regId 挂号Id
     * @return CareHistory
     */
    CareHistory selectCareHistoryByRegId(String regId);
}